import Taro, { Component } from '@tarojs/taro'

const globalData = { baseurl: 'https://zhongsheng.bayou-tech.cn/' }

export function setGlobalData (key, val) {
  globalData[key] = val
}

export function getGlobalData (key) {
  return globalData[key]
}



// 打开新页面
export function $navigateTo(url){
    Taro.navigateTo({
        url: url
      });
}
// 当前页面打开
export function $redirectTo(url){
    Taro.redirectTo({
        url: url
      });
}
//出栈
export function $navigateBack(){
  Taro.navigateBack({

      });
}